package com.gezi.admin.module.sys.log;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gezi.admin.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author 格子软件
 * @createDate 2024/2/10 09:00
 * @contact 公众号：格子软件 微信：13716343106 邮箱：1424529270@qq.com
 */
@Data
@TableName("sys_operate_log")
public class SysOperateLogEntity extends BaseEntity {

  @ApiModelProperty(value = "系统用户id")
  @TableField(value = "user_id")
  private String userId;

  @ApiModelProperty(value = "操作类型")
  @TableField(value = "client")
  private String client;

  @ApiModelProperty(value = "操作模块")
  private String title;

  @ApiModelProperty(value = "业务类型（0其它 1新增 2修改 3删除）")
  @TableField(value = "business_type")
  private String businessType;

  @ApiModelProperty(value = "请求方法")
  private String method;

  @ApiModelProperty(value = "请求方式")
  @TableField(value = "request_method")
  private String requestMethod;

  @ApiModelProperty(value = "请求参数")
  @TableField(value = "request_param")
  private String requestParam;

  @ApiModelProperty(value = "请求结果")
  @TableField(value = "request_result")
  private String requestResult;

  @ApiModelProperty(value = "请求url")
  @TableField(value = "oper_url")
  private String operUrl;

  @ApiModelProperty(value = "请求ip")
  @TableField(value = "oper_ip")
  private String operIp;

  @ApiModelProperty(value = "状态")
  @TableField(value = "state")
  private String state;

  @ApiModelProperty(value = "状态描述")
  @TableField(value = "state_remark")
  private String stateRemark;
}